import type { RouteRecordRaw } from 'vue-router'
import BaseLayout from '~/layouts/BaseLayout.vue'

export const constantRouteMap: RouteRecordRaw[] = [
  {
    path: '/',
    redirect: '/index',
    component: BaseLayout,
    children: [
      {
        path: '/index',
        component: () => import('~/views/index/index.vue'),
      },
      {
        path: '/about',
        component: () => import('~/views/about/index.vue'),
      },
    ],
  },
  {
    path: '/:pathMatch(.*)*',
    component: () => import('~/views/exception/404.vue'),
  },
]
